import request from "@/utils/request/request";

export function findAll(data){
  return request({
    url: 'http://localhost:9999/jeecgcoupon/coupon/findAll',
    method: 'post',
    data,
  })
}
export function deleteOne(id){
  return request({
    url: 'http://localhost:9999/jeecgcoupon/coupon/deleteOne',
    method: 'post',
    params:{
      id:id
    }
  })
}
export function addCoupon(data){
  return request({
    url: 'http://localhost:9999/jeecgcoupon/coupon/addCoupon',
    method: 'post',
    data,
  })
}
export function findActicity(){
  return request({
    url: 'http://localhost:9999/jeecgcoupon/coupon/findActicity',
    method: 'get'
  })
}
export function updCoupon(data){
  return request({
    url: 'http://localhost:9999/jeecgcoupon/coupon/updCoupon',
    method: 'post',
    data,
  })
}
